﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x0200008D RID: 141
	public class TCommentOnSqlStmt : TCustomSqlStatement
	{
		// Token: 0x060003AC RID: 940 RVA: 0x002FA14D File Offset: 0x002F834D
		public TCommentOnSqlStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCommentOn;
		}

		// Token: 0x17000065 RID: 101
		// (get) Token: 0x060003AD RID: 941 RVA: 0x002FA161 File Offset: 0x002F8361
		// (set) Token: 0x060003AE RID: 942 RVA: 0x002FA169 File Offset: 0x002F8369
		public TObjectName objectName
		{
			get
			{
				return this._objectName;
			}
			set
			{
				this._objectName = value;
			}
		}

		// Token: 0x17000066 RID: 102
		// (get) Token: 0x060003AF RID: 943 RVA: 0x002FA172 File Offset: 0x002F8372
		// (set) Token: 0x060003B0 RID: 944 RVA: 0x002FA17A File Offset: 0x002F837A
		public TConstant message
		{
			get
			{
				return this._message;
			}
			set
			{
				this._message = value;
			}
		}

		// Token: 0x17000067 RID: 103
		// (get) Token: 0x060003B1 RID: 945 RVA: 0x002FA183 File Offset: 0x002F8383
		// (set) Token: 0x060003B2 RID: 946 RVA: 0x002FA18B File Offset: 0x002F838B
		public EDbObjectType dbObjectType
		{
			get
			{
				return this._dbObjectType;
			}
			set
			{
				this._dbObjectType = value;
			}
		}

		// Token: 0x060003B3 RID: 947 RVA: 0x002FA194 File Offset: 0x002F8394
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TCommentSqlNode tcommentSqlNode = (TCommentSqlNode)this.rootNode;
			this._objectName = tcommentSqlNode.ObjectName;
			this._message = tcommentSqlNode.Message;
			this._dbObjectType = tcommentSqlNode.dbObjectType;
			return 0;
		}

		// Token: 0x060003B4 RID: 948 RVA: 0x002FA1E4 File Offset: 0x002F83E4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060003B5 RID: 949 RVA: 0x002FA1F4 File Offset: 0x002F83F4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040010BA RID: 4282
		private TObjectName _objectName;

		// Token: 0x040010BB RID: 4283
		private TConstant _message;

		// Token: 0x040010BC RID: 4284
		private EDbObjectType _dbObjectType;
	}
}
